<?php

namespace Admin\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MyApp\testBundle\Entity\Contact
 *
 * @ORM\Table(name="contact")
 * @ORM\Entity
 */
class Contact
{
    /**
     * @var integer $idcontact
     *
     * @ORM\Column(name="idcontact", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $idcontact;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=100, nullable=true)
     */
    private $name;

    /**
     * @var string $lastname
     *
     * @ORM\Column(name="lastname", type="string", length=45, nullable=true)
     */
    private $lastname;

    /**
     * @var string $phone1
     *
     * @ORM\Column(name="phone1", type="string", length=45, nullable=true)
     */
    private $phone1;

    /**
     * @var string $phone2
     *
     * @ORM\Column(name="phone2", type="string", length=45, nullable=true)
     */
    private $phone2;

    /**
     * @var string $addr
     *
     * @ORM\Column(name="addr", type="string", length=45, nullable=true)
     */
    private $addr;

    /**
     * @var string $mail
     *
     * @ORM\Column(name="mail", type="string", length=45, nullable=true)
     */
    private $mail;

    /**
     * @var Device
     *
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * @ORM\OneToOne(targetEntity="Device")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="device_iddevice", referencedColumnName="iddevice")
     * })
     */
    private $devicedevice;


}
